package com.cti.ftpservice.service;

import java.util.List;

import com.cti.ftpservice.model.onix.FtpFileInfo;
import com.cti.ftpservice.vo.FtpFileInfoViewVo;
import com.cti.ftpservice.vo.OnixBookBaseInfoVo;
import com.cti.ftpservice.vo.OnixBookInfoQueryVo;
import com.cti.ftpservice.vo.OnixXmlFileReadOnixBookBaseInfoVo;
import com.cti.ftpservice.vo.PageViewVO;


public interface OnixDataService {
 
	public boolean addOnixBookInfoVo(OnixBookBaseInfoVo onixBookVo,String ftpfileinfoId);
	
	/**
	 * 保存解析的书目信息并跟新xml文件信息，将解析状态改为true
	 * @param infoVo
	 */
	public int addOnixXmlFileReadOnixBookBaseInfoVo(OnixXmlFileReadOnixBookBaseInfoVo infoVo);

	public PageViewVO<OnixBookBaseInfoVo> getOnixBookBaseInfoVosByQuery(OnixBookInfoQueryVo queryVo, int pageIndex, int pageSize);
	
	/**
	 * 解析xml文件
	 * @param fileinfoId
	 * @param fileLocalPath
	 * @param readySaveRecordCount
	 * @return
	 */
	public  OnixXmlFileReadOnixBookBaseInfoVo readOnixXmlFileCommonMethod(String fileinfoId,String fileLocalPath,int readySaveRecordCount);
	
	
	public  int saveOnixXmlFileReadOnixBookBaseInfoVo(OnixXmlFileReadOnixBookBaseInfoVo baseInfoVo);
	
	public void readBookInfoFromLocalOnixXmlFileToDataBase();
	
	public void saveWaitToParsingOnixFileInfoToDataBase();
	
	public void rebuildIndex();
	
	public OnixBookBaseInfoVo getOnixBookInfoByISBN(String isbn);
}
